import json
import requests

if __name__ == "__main__":
    url = "http://10.143.12.26:10019/upload"
    media_path = r"D:\Project\yolov7-guarantee\guarantee\bridge_off.mp4"
    with open(media_path, 'rb') as media_file:
        media_data = {'file': (media_path, media_file, 'video/mp4')}
        r = requests.post(url, files=media_data)
        print(r.json())

